﻿/*
 * zexception.cxx
 *
 *  Created on: 2012-7-24
 *      Author: Fifi Lyu
 *        Desc: 平台无关，通用函数库，使用异常处理错误
 */


#include "zpsoe/zexception.h"
#include "zpsoe/zlog.h"

namespace zpsoe {

ZpsoeException::ZpsoeException(
        const string &msg, const string &file, int line) throw()
        : m_msg(msg) {
    zlog::_print_log(LOG_ERROR, file.c_str(), line, "%s", m_msg.c_str());
}

ZpsoeException::~ZpsoeException() throw() {

}

const char* ZpsoeException::what() const throw() {
    return m_msg.c_str();
}

} /* namespace zpsoe */
